package com.diy.sigmund.diycommon.entity;

import com.diy.sigmund.diycommon.entity.base.AbstractEntity;

/**
 * @author ylm-sigmund
 * @since 2021/8/16 16:28
 */
public class CustomUser extends AbstractEntity {

    /**
     * 用户id
     */
    private String userId;
    /**
     * 1手机号 2邮箱 3用户名 4qq 5微信 6腾讯微博 7新浪微博
     */
    private String identityType;
    /**
     * 0 站内登录方式，1 站外登录方式
     */
    private String isExternalLogin;
    /**
     * 手机号 邮箱 用户名或第三方应用的唯一标识
     */
    private String identifier;
    /**
     * 角色 1正常用户 2禁言用户 3虚拟用户 4运营
     */
    private String userRole;
    /**
     * 登录token
     */
    private String accessToken;
    /**
     * 刷新token
     */
    @Deprecated
    private String refreshToken;

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    @Deprecated
    public String getRefreshToken() {
        return refreshToken;
    }

    @Deprecated
    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }

    public String getIsExternalLogin() {
        return isExternalLogin;
    }

    public void setIsExternalLogin(String isExternalLogin) {
        this.isExternalLogin = isExternalLogin;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
